'use strict';
import React from 'react';
import { Route, DefaultRoute, hashHistory, IndexRoute, Redirect, IndexLink} from 'react-router';

// 引入单个页面（包括嵌套的子页面）
import container from './pages/frontEnd/container.js';
import myProfile from './pages/frontEnd/myProfile.js';
import index from './pages/frontEnd/index';
import productDetail from './pages/frontEnd/productDetail';
import shoppingCart from './pages/frontEnd/shoppingCart';
import changePwd from './pages/frontEnd/changePwd';
import myFavorites from './pages/frontEnd/myFavorites';
// 配置路由
export default (
    <Route path="/" component={container}>
      <Route path="myProfile" component={myProfile}/>
      <Route path="index" component={index}/>
      <Route path="productDetail/:id" component={productDetail}/>
      <Route path="shoppingCart" component={shoppingCart}/>
      <Route path="changePwd" component={changePwd}/>
      <Route path="myFavorites" component={myFavorites}/>
      {
        // <Redirect from="*" to="/login"/>
      }
    </Route>
);
